package org.jeecg.chase.common.dataaccess.data;

import java.util.List;

/**
 * @author leikai
 * @version 1.0
 * @description:分页返回对象
 * @date 2021/07/23/0023 17:29
 */
public class Page<T> extends PageRequest {

    List<T> result = null;
    long totalLength = 0;

    public Page(PageRequest request) {
        this.pageNo = request.pageNo;
        this.pageSize = request.pageSize;
        this.countTotal = request.countTotal;
        this.orderBy = request.orderBy;
    }

    public List<T> getResult() {
        return result;
    }

    public void setResult(List<T> result) {
        this.result = result;
    }

    public long getTotalLength() {
        return totalLength;
    }

    public void setTotalLength(long totalLength) {
        this.totalLength = totalLength;
    }
}
